<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>中国白酒文化宣传网站</title>
    <style>
        *{margin: 0;padding: 0;list-style-type: none;}
        a{
            text-decoration: none;
            color: black;
        }
        body{
            background-color: #f5f5f5;
        }
        .utmost{
            width: 2050px;
            margin-left: auto;
            margin-right: auto;
            background-color: #f5f5f54a;
        }
        .column{
            position: relative;
            height: 80px;
            background-color: #ffffff;
        }
        /* logo */
        .column .logo{
            position: absolute;
            height: 80px;
            left: 10%;
            /* border: 1px solid black; */
            cursor: pointer;
            font-family: '海韵';
        }
        .column .logo h2{
            margin-top: 5%;
            font-size: 38px;
        }
        /* 栏目 */
        .column .table{
            position: absolute;
            height: 80px;
            width: 850px;
            /* border: 1px solid black; */
            left: 32%;
        }
        .column .table ul li{
            float: left;
            font-weight: bold;
            font-family: '宋体';
        }
        .column .table ul li:nth-child(1){
            /* border: 1px solid aqua; */
            width: 70px;
            margin-top: 3%;
            margin-left: 2%;
            font-size: 25px;
        }
        .column .table ul li:nth-child(2){
            /* border: 1px solid aqua; */
            width: 120px;
            margin-top: 3%;
            margin-left: 2%;
            font-size: 25px;
        }
        .column .table ul li:nth-child(3){
            /* border: 1px solid aqua; */
            width: 130px;
            margin-top: 3%;
            margin-left: 3%;
            font-size: 25px;
        }
        .column .table ul li:nth-child(4){
            /* border: 1px solid aqua; */
            width: 200px;
            margin-top: 3%;
            margin-left: 3%;
            font-size: 25px;
        }
        .column .table ul li:nth-child(5){
            /* border: 1px solid aqua; */
            width: 135px;
            margin-top: 3%;
            margin-left: 6%;
            font-size: 25px;
        }
        .column .table ul li:nth-child(5) span:nth-child(1){
            font-weight: 100;
            font-size: 20px;
        }
        .column .table ul li:nth-child(5) span:nth-child(2){
            font-weight: 100;
            font-size: 20px;
            display: none;
        }
        .column .table ul li:nth-child(6){
            /* border: 1px solid aqua; */
            width: 170px;
            margin-top: 3%;
            margin-left: 3%;
            font-size: 25px;
        }
        .column .table ul li:hover{
            font-size: 27px;
            transition: .3s;
        }
        .column .table ul li a:hover{
            color: rgba(135, 207, 235, 0.708);
        }
        /* 登录，注册 */
        .column .user{
            position: absolute;
            right: 5%;
            width: 500px;
            top: 28%;
            height: 40px;
            /* border: 1px solid black; */
            cursor: pointer;
        }
        .column .user span{
            font-size: 22px;
            font-family: '宋体';
            padding-left: 4px;
            padding-right: 4px;
        }
        .column .img{
            position: absolute;
            right: 560px;
            top: 18px;
        }
        .column .user input{
            height: 35px;
            width: 200px;
            margin-right: 80px;
            margin-left: 50px;
            font-size: 20px;
        }
        .column .user .login{
            border-right: 1px solid black;
        }
        .column .user .login:hover{
            color: #ccc;
        }
        .column .user .enroll:hover{
            color: #ccc;
        }
        /* 轮播图 */
        .banner_wrap{
            position: relative;
            overflow: hidden;
            width: 1000px;
            height: 446px;
            margin-top: 2%;
            margin-left: 15%;
            margin-right: 10%;
            user-select: none;
        }
        .banner_wrap .banner_img{
            position: relative;
        }
        .banner_wrap ul li{
            position: absolute;
            top: 0;
            left: 0;
            opacity: 0;
            transition: .3s;
        }
        .banner_wrap ul li.show{
            opacity: 1;
        }
        .banner_wrap ul li img{
            width: 1000px;
            height: 545px;
            transition: .4s;
        }
        .group_btn{
            position: absolute;
            z-index: 999;
            left: 0;
            top: 50%;
            right: 0;
            margin: 0;
            margin-top: -25px;
        }
        .group_btn .btn{
            width: 50px;
            height: 50px;
            font-size: 30px;
            line-height: 40px;
            text-align: center;
            color: #fff;
        }
        .banner_wrap ul li img:hover{
            width: 1100px;
            height: 645px;
            transition: .4s;
        }
        .group_btn .btn:hover{
            background-color: rgba(0,0,0,.5);
        }
        .prev_btn{
            float: left;
        }
        .next_btn{
            float: right;
        }
        body{
            position: relative;
        }
        /* 右侧品牌 */
        .brand{
            position: absolute;
            height: 800px;
            width: 450px;
            left: 67%;
            right: 12%;
            top: 110px;
            background-color: #ffffff;
        }
        .brand ul li{
            /* border: 1px solid black; */
            width: 450px;
        }
        .brand ul li h3{
            padding-left: 5%;
            padding-bottom: 10%;
        }
        .brand ul li a{
            color: #293674;
            padding-left: 2%;
            padding-top: 2%;
            font-size: 18px;
            text-align: center;
        }
        .brand ul li span{
            padding-left: 8%;
            padding-top: 1%;
            font-size: 20px;
        }
        .brand ul li:nth-child(1){
            font-family: "宋体";
            font-weight: 100;
            
            font-size: 25px;
            margin-left: 20px;
            margin-top: 30px;
            margin-bottom: 40px;
            height: 30px;
            border-left: 4px solid #ccc;
        }
        /* 下方文章 */
        .discrim{
            position: absolute;
            width: 960px;
            border: 1px solid black;
            top: 105%;
            left: 16%;
            background-color: #ffffff;
        }
        .discrim .classify{
            position: relative;
            width: 960px;
            height: 50px;
        }
        .discrim .classify ul li{
            position: absolute;
            font-size: 23px;
            height: 40px;
            top: 20%;
            cursor: pointer;
            font-family: "宋体";
            font-weight: 600;
        }
        .discrim .classify ul li:nth-child(1){
            left: 4%;
        }
        .discrim .classify ul .show{

        }
        .discrim .classify ul li:nth-child(2){
            left: 18%;
        }
        .discrim .classify ul li:nth-child(3){
            left: 32%;
        }
        .discrim .classify ul li:nth-child(4){
            left: 46%;
        }
        .discrim .classify ul li:nth-child(5){
            left: 60%;
        }
        .discrim .classify ul li:nth-child(6){
            left: 76%;
        }
        .discrim .classify ul li:hover{
            color: rgba(135, 140, 235, 0.842);
            border-bottom: 2px solid #3568df;
            transition: .3s;
        }
        .discrim .part li{
            height: 250px;
            width: 960px;
            margin-top: 20px;
            margin-bottom: 2%;
            cursor: pointer;
            /* border: 1px solid red; */
            border-bottom: 1px solid #ccc;
        }
        .discrim .part img:nth-child(1){
            width: 320px;
            height: 220px;
            margin: 15px 0px 0px 10px;
            border-radius: 5px;
        }
        .discrim .part ul li .IMG1{
            position: absolute;
            bottom: 10%;
            right: 25%;
        }
        .discrim .part ul li .IMG2{
            position: absolute;
            bottom: 33px;
            right: 20%;
        }
        .discrim .part ul li .IMG3{
            position: absolute;
            bottom: 30px;
            right: 15%;
        }
        .discrim .part ul li .IMG4{
            position: absolute;
            bottom: 34px;
            right: 10%;
        }
        .discrim .part ul li h3{
            position: absolute;
            top: 85px;
            left: 360px;
            font-size: 25px;
            font-weight: 400;
        }
        .discrim .part ul li p{
            height: 60px;
            width: 600px;
            /* border: 1px solid red; */
            position: absolute;
            overflow: hidden;
            top:135px;
            left: 360px;
            font-size: 18px;
        }
        .discrim .part ul li:hover{
            background-color: #f8f8f8;
            transition: 1.5s;
        }
        .discrim .part ul li h3:hover{
            color: #3568df;
        }
        .discrim .part ul .bigger:hover{
            width: 325px;
            height: 224px;
            overflow: hidden;
            transition: .6s;
        }
        @font-face {
            font-family: "海韵";
            src: url(../../front/迷你简海韵.ttf);
        }
        @font-face {
            font-family: "宋体";
            src: url(../../front/苏新诗央行体.ttf);
        }
    </style>
</head>
<body>
    <div class="utmost">
            <!-- 栏目 -->
     <div class="column">
        <div class="logo">
            <h2>中国白酒文化宣传网站</h2>
        </div>
        <div class="table">
            <ul>
                <li><a href="">首页</a></li>
                <li><a href="">文章分类</a></li>
                <li><a href="">白酒类别</a></li>
                <li><a href="">白酒与古代文化</a></li>
                <li><a href="">更多</a></li>
            </ul>
        </div>
        <div class="img"><img src="./img/20191007204001687.png" alt=""></div>
        <div class="user">
            <input type="text">
            <span class="login">登录</span><span class="enroll">注册</span>
        </div>
     </div>
     <!-- 轮播图 -->
     <div class="banner_wrap">
        <div class="banner_img">
            <ul>
                <li class="show"><img src="https://tse2-mm.cn.bing.net/th/id/OIP-C.aCFprmfjJOxu9GV6hh5bCgHaCs?w=342&h=127&c=7&r=0&o=5&dpr=1.5&pid=1.7" alt=""></li>
                <li><img src="https://tse4-mm.cn.bing.net/th/id/OIP-C.7K8JgOSqIRa8ptYOU6OUpgHaDd?w=342&h=163&c=7&r=0&o=5&dpr=1.5&pid=1.7" alt=""></li>
                <li><img src="https://tse2-mm.cn.bing.net/th/id/OIP-C.kWTuE4H56dkVStTMEfTwwwHaDt?w=339&h=175&c=7&r=0&o=5&dpr=1.5&pid=1.7" alt=""></li>
                <li><img src="https://tse2-mm.cn.bing.net/th/id/OIP-C.N6MSuD9qr2q_DsVFbLBKCwHaFI?w=295&h=204&c=7&r=0&o=5&dpr=1.5&pid=1.7" alt=""></li>
                <li><img src="https://tse3-mm.cn.bing.net/th/id/OIP-C.DqY0fuQcUq5nQTuJJrpdOgHaFK?w=255&h=180&c=7&r=0&o=5&dpr=1.5&pid=1.7" alt=""></li>
            </ul>
        </div>
        <div class="group_btn">
            <!-- &lt;生成向左的箭头   &gt;生成向右的箭头 -->
            <div class="prev_btn btn">&lt;</div>
            <div class="next_btn btn">&gt;</div>
        </div>
     </div>
     <!-- 右侧推荐 -->
     <div class="brand">
        <ul>
            <li><h3>酒类新闻热点</h3></li>
            <li><span>◆</span><a href=""></a></li>
        </ul>
     </div>
     <!-- 下方文章鉴赏 -->
      <div class="discrim">
        <div class="classify">
            <ul>
                <li class="show">最新文章</li>
                <li>白酒常识</li>
                <li>酒类标准</li>
                <li>酒类文化</li>
                <li>酒与文学</li>
                <li>酒类新闻</li>
            </ul>
        </div>
        <div class="part">
            <ul>
                <li>
                    <img class="bigger" src="" alt="">
                    <h3></h3>
                    <p></p>
                    <img class="IMG1" src="" alt=""><span class="first"></span>
                    <img class="IMG2" src="" alt=""><span class="second"></span>
                    <img class="IMG3" src="" alt=""><span class="third"></span>
                    <img class="IMG4" src="" alt=""><span class="forth"></span>
                </li>
            </ul>
        </div>
      </div>
    </div>
    <script>
        let login = document.querySelector(".column .user .login"),
            enroll = document.querySelector(".column .user .enroll");
        login.onclick = function(){
            window.location.replace("../酒类文化宣传/登录界面.html")
        }
        enroll.onclick = function(){
            window.location.replace("../酒类文化宣传/注册界面.html")
        }
        //轮播图
        let aBannerLi = document.querySelectorAll(".banner_wrap .banner_img li"),
                       len = 5,
                       btnPrev = document.querySelector(".group_btn .prev_btn"),
                       btnNext = document.querySelector(".group_btn .next_btn"),
                       i = 0;//下标
        
        btnPrev.onclick = function (){
            aBannerLi[i].classList.remove("show")
            if(i > 0){
                i--
            }
            else{
                i = 4;
            }
            aBannerLi[i].classList.add("show")
        }
        btnNext.onclick = function (){
            aBannerLi[i].classList.remove("show")
            i++
            i %= len
            aBannerLi[i].classList.add("show")
        }
        //下方文章
        let transForm = document.querySelectorAll(".discrim .classify ul li");
        let j = 0;
        transForm.mousemove = function(){
            transForm[j].classList.remove("show")

        }
    </script>
</body>
</html>